import request from '@/utils/request'

let LinkApi = {
  /*友情链接列表*/
  linkList(data, errorback) {
    return request._post('/shop/link.link/index', data, errorback);
  },
  /*添加友情链接*/
  addLink(data, errorback) {
    return request._post('/shop/link.link/add', data, errorback);
  },
  /*友情链接详情*/
  linkDetail(data, errorback) {
    return request._get('/shop/link.link/edit', data, errorback);
  },
  /*修改友情链接*/
  editLink(data, errorback) {
    return request._post('/shop/link.link/edit', data, errorback);
  },
  /*删除友情链接*/
  deleteLink(data, errorback) {
    return request._post('/shop/link.link/delete', data, errorback);
  },
}

export default LinkApi;
